package com.dt.dubai.sys.entity;

import com.dt.dubai.core.comm.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.*;

import javax.persistence.Table;
import javax.validation.constraints.*;


/*
 * 系统菜单表
 */

@Data
@Table(name = "dt_sys_menu")
@EqualsAndHashCode(callSuper = false)
public class SysMenuEntity extends BaseEntity {

    //菜单中文名称
    @Length(min = 0, max = 30, message = "menuNameZh参数最大长度不30")
    String menuNameZh;

    //菜单url地址
    @Length(min = 0, max = 100, message = "menuUrl参数最大长度不100")
    String menuUrl;

    //菜单图标地址
    @Length(min = 0, max = 36, message = "menuIconAdds参数最大长度不36")
    String menuIconAdds;

    //父节点记录ID
    Long menuPid;

    //是否叶子 0-否,1-是
    @NotNull(message = "yesLeaf参数不能为空")
    Boolean yesLeaf;

    //状态 0-禁用,1-启用
    Short menuStatus;

    //序号
    Integer menuOrder;


}
